<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>InFact: infact::VarMapImpl&lt; T, Derived &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">InFact
   
   </div>
   <div id="projectbrief">Interpreter and factory for easily creating C++ objects at run-time</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceinfact.html">infact</a>      </li>
      <li class="navelem"><a class="el" href="classinfact_1_1_var_map_impl.html">VarMapImpl</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">infact::VarMapImpl&lt; T, Derived &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="infact::VarMapImpl" --><!-- doxytag: inherits="infact::VarMapBase" -->
<p>A partial implementation of the <a class="el" href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values.">VarMapBase</a> interface that is common to both VarMap&lt;T&gt; and the <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a>&lt;vector&lt;T&gt; &gt; partial specialization.  
 <a href="classinfact_1_1_var_map_impl.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="environment_8h_source.html">environment.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for infact::VarMapImpl&lt; T, Derived &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classinfact_1_1_var_map_impl.png" usemap="#infact::VarMapImpl&lt; T, Derived &gt;_map" alt=""/>
  <map id="infact::VarMapImpl&lt; T, Derived &gt;_map" name="infact::VarMapImpl&lt; T, Derived &gt;_map">
<area href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values." alt="infact::VarMapBase" shape="rect" coords="0,0,202,24"/>
</map>
 </div></div>

<p><a href="classinfact_1_1_var_map_impl-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#a62772cae1750f255b4292a8aa3a000b4">VarMapImpl</a> (const string &amp;name, <a class="el" href="classinfact_1_1_environment.html">Environment</a> *<a class="el" href="classinfact_1_1_var_map_impl.html#a08a42daedfe77f8a3b80bdc59c1c0754">env</a>, bool is_primitive=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#ae4d41541881e83f935b742f5462689d2">~VarMapImpl</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#a7995e8a182a980899b4a0c90eee0d110">Get</a> (const string &amp;varname, T *value) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigns the value of the specified variable to the object pointed to by the <code>value</code> parameter.  <a href="#a7995e8a182a980899b4a0c90eee0d110"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#a50796df8a142b9b0fe94f41699c3bd94">Defined</a> (const string &amp;varname) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#a41079cce7547d72dec0a0e0bfbbd6d20">Set</a> (const string &amp;varname, T value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the specified variable to the specified value.  <a href="#a41079cce7547d72dec0a0e0bfbbd6d20"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#aca4fbe7a4eb8fe86c8509af9d9d3a053">Print</a> (ostream &amp;os) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classinfact_1_1_var_map_base.html">VarMapBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#a130789d78a53d05d8bc081ea5b18c655">Copy</a> (<a class="el" href="classinfact_1_1_environment.html">Environment</a> *<a class="el" href="classinfact_1_1_var_map_impl.html#a08a42daedfe77f8a3b80bdc59c1c0754">env</a>) const </td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#abf54e90f199a4fd8ddb19d11114df76d">ReadAndSetFromExistingVariable</a> (const string &amp;varname, <a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;st)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the next token is an identifier and is a variable in the environment, and, if so, sets varname to the variable&rsquo;s value.  <a href="#abf54e90f199a4fd8ddb19d11114df76d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classinfact_1_1_environment.html">Environment</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_impl.html#a08a42daedfe77f8a3b80bdc59c1c0754">env</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A protected method to access the environment contained by this <a class="el" href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values.">VarMapBase</a> instance, for the two concrete <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> implementations, below.  <a href="#a08a42daedfe77f8a3b80bdc59c1c0754"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T, typename Derived&gt;<br/>
class infact::VarMapImpl&lt; T, Derived &gt;</h3>

<p>A partial implementation of the <a class="el" href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values.">VarMapBase</a> interface that is common to both VarMap&lt;T&gt; and the <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a>&lt;vector&lt;T&gt; &gt; partial specialization. </p>
<p>In a delightful twist, this partial implementation of <a class="el" href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values.">VarMapBase</a> uses the curiously recurring template pattern (CRTP) in order to implement the <a class="el" href="classinfact_1_1_var_map_base.html#a2f703c07a28fee226c76039cbb038b78">VarMapBase::Copy </a> method, as well as the protected method <a class="el" href="classinfact_1_1_var_map_impl.html#abf54e90f199a4fd8ddb19d11114df76d">ReadAndSetFromExistingVariable</a>.</p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">T</td><td>the type of variables stored in this (partial implementation of a) variable map </td></tr>
    <tr><td class="paramname">Derived</td><td>the type of the class using this as its base class (a.k.a. CRTP, or the "curiously recurring template pattern") </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00266">266</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a62772cae1750f255b4292a8aa3a000b4"></a><!-- doxytag: member="infact::VarMapImpl::VarMapImpl" ref="a62772cae1750f255b4292a8aa3a000b4" args="(const string &amp;name, Environment *env, bool is_primitive=true)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html">VarMapImpl</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_environment.html">Environment</a> *&#160;</td>
          <td class="paramname"><em>env</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>is_primitive</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="environment_8h_source.html#l00268">268</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae4d41541881e83f935b742f5462689d2"></a><!-- doxytag: member="infact::VarMapImpl::~VarMapImpl" ref="ae4d41541881e83f935b742f5462689d2" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::~<a class="el" href="classinfact_1_1_var_map_impl.html">VarMapImpl</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="environment_8h_source.html#l00271">271</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a130789d78a53d05d8bc081ea5b18c655"></a><!-- doxytag: member="infact::VarMapImpl::Copy" ref="a130789d78a53d05d8bc081ea5b18c655" args="(Environment *env) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classinfact_1_1_var_map_base.html">VarMapBase</a>* <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#a130789d78a53d05d8bc081ea5b18c655">Copy</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_environment.html">Environment</a> *&#160;</td>
          <td class="paramname"><em>env</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a newly constructed copy of this <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a>. </p>
 
<p>Implements <a class="el" href="classinfact_1_1_var_map_base.html#a2f703c07a28fee226c76039cbb038b78">infact::VarMapBase</a>.</p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00316">316</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="a50796df8a142b9b0fe94f41699c3bd94"></a><!-- doxytag: member="infact::VarMapImpl::Defined" ref="a50796df8a142b9b0fe94f41699c3bd94" args="(const string &amp;varname) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#a50796df8a142b9b0fe94f41699c3bd94">Defined</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns whether the specified variable has a definition in this environment. </p>
 
<p>Implements <a class="el" href="classinfact_1_1_var_map_base.html#ad6f73c0907135b00d2e635c6d54a8a12">infact::VarMapBase</a>.</p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00291">291</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="a08a42daedfe77f8a3b80bdc59c1c0754"></a><!-- doxytag: member="infact::VarMapImpl::env" ref="a08a42daedfe77f8a3b80bdc59c1c0754" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classinfact_1_1_environment.html">Environment</a>* <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#a08a42daedfe77f8a3b80bdc59c1c0754">env</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A protected method to access the environment contained by this <a class="el" href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values.">VarMapBase</a> instance, for the two concrete <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> implementations, below. </p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00373">373</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7995e8a182a980899b4a0c90eee0d110"></a><!-- doxytag: member="infact::VarMapImpl::Get" ref="a7995e8a182a980899b4a0c90eee0d110" args="(const string &amp;varname, T *value) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#a7995e8a182a980899b4a0c90eee0d110">Get</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assigns the value of the specified variable to the object pointed to by the <code>value</code> parameter. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether the specified variable exists and the assignment was successful </dd></dl>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00280">280</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="aca4fbe7a4eb8fe86c8509af9d9d3a053"></a><!-- doxytag: member="infact::VarMapImpl::Print" ref="aca4fbe7a4eb8fe86c8509af9d9d3a053" args="(ostream &amp;os) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#aca4fbe7a4eb8fe86c8509af9d9d3a053">Print</a> </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints out a human-readable string to the specified output stream containing the variables, their type and, if primitive, their values. </p>
 
<p>Implements <a class="el" href="classinfact_1_1_var_map_base.html#a238bc7a27b8c69505e5ae6ddf5ee0738">infact::VarMapBase</a>.</p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00301">301</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="abf54e90f199a4fd8ddb19d11114df76d"></a><!-- doxytag: member="infact::VarMapImpl::ReadAndSetFromExistingVariable" ref="abf54e90f199a4fd8ddb19d11114df76d" args="(const string &amp;varname, StreamTokenizer &amp;st)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#abf54e90f199a4fd8ddb19d11114df76d">ReadAndSetFromExistingVariable</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;&#160;</td>
          <td class="paramname"><em>st</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks if the next token is an identifier and is a variable in the environment, and, if so, sets varname to the variable&rsquo;s value. </p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00329">329</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="a41079cce7547d72dec0a0e0bfbbd6d20"></a><!-- doxytag: member="infact::VarMapImpl::Set" ref="a41079cce7547d72dec0a0e0bfbbd6d20" args="(const string &amp;varname, T value)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename Derived&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classinfact_1_1_var_map_impl.html">infact::VarMapImpl</a>&lt; T, Derived &gt;::<a class="el" href="classinfact_1_1_var_map_impl.html#a41079cce7547d72dec0a0e0bfbbd6d20">Set</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the specified variable to the specified value. </p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00296">296</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/infact/<a class="el" href="environment_8h_source.html">environment.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Apr 23 2014 10:07:53 for InFact by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
